package com.hbsi.dao;

import com.hbsi.domain.Student;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 程奕红
 * @version 1.0
 */
public interface StudentDao {
public List<Student>getAllStudents();


public Student getStudentById(String sid) throws SQLException;
public List<Student> getStudentByName(String name) throws SQLException;//业务分析
    public boolean addStudent(Student s) throws SQLException;
    public boolean updateStudent(Student s);
    public boolean deleteStudent(Student sid) throws SQLException;
}
